$prefix: uiless-create-mr-modal;

.#{$prefix}-form {
  .yx-select {
    width: 100%;
  }
  .cr-repo {
    width: 294px;
  }
  &-branches {
    display: flex;
    align-items: center;
    .cr-target-branch {
      width: 294px;
      margin-bottom: 20px;
      label {
        display: flex;
        flex-direction: row-reverse;
        margin-bottom: 8px;
        &:before {
          margin-left: 4px;
        }
      }
    }
    .cr-source-branch {
      width: 294px;
      label {
        display: flex;
        flex-direction: row-reverse;
        margin-bottom: 8px;
        &:before {
          margin-left: 4px;
        }
      }
    }
    .cr-branch-icon {
      margin: 0 16px;
      color: $gray-06;
      align-self: flex-start;
      position: relative;
      top: 37px;
    }
    .yx-form-item {
      align-self: flex-start;
    }
  }
  .formlabel-member-trigger {
    .yx-form-item-control {
      display: flex;
    }
  }
}

// select组件下拉中有at-path时的hack
.at-path-select-popup,
.ellipsis-label-select-popup {
  &.small {
    width: 240px;
  }
  .yx-menu-item-text {
    align-self: center;
    display: inline-block;
    max-width: 100%;
  }
}

.new-cr-title-help {
  line-height: 20px;
  font-size: 12px;
  color: $gray-06;
  display: flex;
  align-items: center;
  .wip {
    box-sizing: border-box;
    width: 42px;
    height: 20px;
    background: #f5f5f5;
    border: 1px solid $gray-03;
    border-radius: 2px;
    color: $gray-06;
    margin: 0 4px;
    text-align: center;
    line-height: 16px;
  }
}
